

cc.Class({
    extends: cc.Component,

    properties: {

    },



    onLoad() {
        this.speed = -100;
    },

    start() {

    },
    update(dt) {
        this.node.x += this.speed * dt;
        if (this.node.x <= (-cc.winSize.width / 2 - this.node.width / 2)) {
            this.node.removeFromParent();
        }
    },
});
